home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / TimGA 1.2.1 / .h / CSelectionDialog.h < prev    next >
Encoding:
Text File  |  1997-07-16  |  1.2 KB  |  58 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CSelectionDialog.h        ©1995-97 Timo Eloranta        All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LGADialogBox.h>
  8. #include <URegistrar.h>
  9.  
  10. #include "MyStructs.h"
  11.  
  12. class LCaption;
  13. class LGAPushButton;
  14. class LGACheckbox;
  15. class LGARadioButton;
  16.  
  17. class CAGASlider;
  18.  
  19. class CSelectionDialog : public LGADialogBox {
  20. public:
  21.     enum {
  22.         class_ID = 'SDlg'
  23.     };
  24.  
  25.             CSelectionDialog ( LStream *theStream );
  26.  
  27.     virtual ~CSelectionDialog() {};
  28.  
  29.     void    InitDialog();
  30.     
  31.     void    ListenToMessage( MessageT inMessage, void *ioParam );
  32.  
  33.     void    SetValues( SSelection &inSelection, Int16 inPopSize );
  34.     void    GetValues( SSelection &outSelection );
  35.  
  36.     virtual void        FindCommandStatus(CommandT inCommand,
  37.                             Boolean &outEnabled, Boolean &outUsesMark,
  38.                             Char16 &outMark, Str255 outName);
  39.  
  40. private:
  41.     
  42.     Int16              mPopSize;
  43.     
  44.     LCaption        * mStepCapt;
  45.     CAGASlider        * mStepSlider;
  46.     LGARadioButton    * mAutomatic;
  47.     LGARadioButton    * mManual;
  48.  
  49.     LCaption        * mMinCapt;
  50.     CAGASlider        * mMinSlider;
  51.     
  52.     LGACheckbox        * mElitismBox;
  53.     LGAPushButton    * mFactoryButton;
  54.     
  55.     void    AdjustFactoryButton( );
  56. };
  57.  
  58.